
<?$this->load->view('admin/tools/admin-header')?>
<?$this->load->view('admin/tools/admin-menu')?>

<div class="wrap">
	<a href=""><div id="icon-index" class="icon32"><br /></div></a><br>
<h3><a>Manage -> Penawaran Broker</a></h3>
<?if((!(empty($mode))) && (!((is_numeric($mode))))){echo"<div id='message' class='updated fade'><p>$pesan</p></div>";}?>
<div id="dashboard-widgets-wrap">
<div style="float:right">

</div>
<form id="posts-filter" onsubmit="return confirm('Pastikan Data yang akan dihapus dalam keadaan tercentang.')" action="<?=site_url('administrator/multi_broker');?>" method="POST">
<p>
	<ul class="subsubsub">
		<li><a href="<?=site_url('administrator/broker_pending')?>"><font color="#FF0000"><?if($current=="pending"){ echo"<b>";?>Baru(<?=$pending?>)<?echo"</b>&nbsp;|&nbsp;";?></font><?}else{?><font color="#FF0000">Baru(<?=$pending?>)</font>&nbsp;|&nbsp;<?}?></a></li>
		<li><a href="<?=site_url('administrator/broker_app')?>"><?if($current=="app"){echo"<b>"?>Sudah Diproses(<?=$approval?>)<?echo"</b>";}else{echo"Sudah Diproses($approval)";}?></a></li>
	</ul>
</p>

<div class="tablenav">



<div class="alignleft">
<input type="submit" value="Delete" name="delete" />
	<table width="250" align="center" border="1">
		<tr style="background:">
			<td width="250" valign="middle" align="center">
			<font face="verdana" size="2" color="#FF0000">
				<div style="float:left">
				<?// $jumlah = $this->tbl_pengumuman->hitung();?>
				<?/*<center>Banyak Data : <b><?//=$jumlah?></b></center>*/?>
				<center><a><?echo $this->pagination->create_links();?></a></center>
			</div></font>
			</td>
		</tr>
		</table>
</div>
</div>

<br class="clear" />
<table width="90%" border="3">
	<thead>
	<tr style="background:#9b9b9b;color:yellow;font-family:arial;height:25px;">
		<th scope="col" class="th-view check-column"><input type="checkbox" /></th>
		<th scope="col" class="th-view">No</th>
		<th scope="col" class="th-view" width="20%">Tanggal</th>
		<th scope="col" class="th-view" width="25%">Nama</th>
		<th scope="col" class="th-view" width="25%">Email</th>
		<th scope="col" class="th-view" width="15%">Telepon</th>
		<th scope="col" class="th-view" width="5%">Status</th>
		<th scope="col" class="th-view" width="10%">Aksi</th>
	</tr>
	</thead>
	<tbody>
	<?
	$no=1;
	$uri = $this->uri->segment(3);
	if($uri==null){$uri=0;}
	foreach ($query as $row)
		{
			$id			= $row->id;
			$tanggal	= $row->newdate;
			$nama		= $row->nama;
			$email	 	= $row->email;
			$telepon 	= $row->telepon;
			$status		= $row->status;
			
			if($status=="approve"){
				$image = "approve.png";
				$title = "Publish";
			}else{
				$image = "cross.png";
				$title = "Unpublish";
			}
			
			if($status=="new"){
				$warna = "yellow";
			}else{
				$warna = "#ffffff";
			}
		?>
	<tr style="background:<?=$warna?>" valign="center">

		<th scope="row" class="td-view check-column"><input type="checkbox" name="cekbok[]" value="<?=$id?>" /></th>
		<td class="td-view"><?=($no+$uri);?></td>
		<td width="20%" class="td-view"><?=$tanggal;?></td>
		<td width="25%" class="td-view" align="justify"><?=$nama;?></td>
		<td width="25%" class="td-view" align="left"><?=$email;?></td>	
		<td width="15%" class="td-view" align="left"><?=$telepon;?></td>
		<td width="5%" class="td-view" align="center"><a href="<?=site_url('administrator/set_approval_broker/'.$id.'/'.$status)?>"><img src="<?=base_url()?>css/icon/<?=$image?>"></a></td>
		<td width="10%" class="td-view" align="center"><a href="<?=site_url('administrator/view_broker/'.$id)?>" title="View Detail"><img src="<?=base_url()?>css/icon/view.png"></a>&nbsp;|&nbsp;<a href="<?=site_url('administrator/delete_broker/'.$id)?>" title="Delete"><img src="<?=base_url()?>css/icon/delete.png"></a></td>
		</tr>
		<?$no++;}?>
	</tbody>
</table>
</form>
</div>
</div><!-- wrap -->
<div class="clear"></div></div><!-- wpbody-content -->
<div class="clear"></div></div><!-- wpbody -->
<div class="clear"></div></div><!-- wpcontent -->
</div><!-- wpwrap -->

<!--admin-footer-->
<?$this->load->view('admin/tools/admin-footer');?>
<!--admin-footer-->
